var fs=require('fs');
exports.page=function(req,res){
    var param=req.params;
    var page=param.pageNum;
    fs.readFile("data/city"+page+".json",function(err,data){
    	if(!err){
    		res.send(data);
    	}
    });
}
exports.page1=function(req,res){
    var param=req.params;
    var page=param.pageNum;
    fs.readFile("data/self"+page+".json",function(err,data){
    	if(!err){
    		res.send(data);
    	}
    });
}
exports.page2=function(req,res){
    var param=req.params;
    var page=param.pageNum;
    fs.readFile("data/"+page+".json",function(err,data){
    	if(!err){
    		res.send(data);
    	}
    });
}
exports.page3=function(req,res){
    var param=req.params;
    var page=param.pageNum;
    fs.readFile("data/live"+page+".json",function(err,data){
    	if(!err){
    		res.send(data);
    	}
    });
}